Skip to main content

Widget Utilities

Type

module

Summary

A library of utility handlers for functions commonly needed by widgets.

Description

A library of utility handlers for functions commonly needed by widgets.

Children Properties

Handler

NameSummarySyntax
colorToStringConverts a color to a string representing the colorcolorToString(<pColor>,<pIncludeAlpha>)
stringToColorConverts a string to a colorstringToColor(<pString>)
intToStringFormats an integer as a stringintToString(<pNumber>)
placeholderIconReturns a placeholder icon for a given operating systemplaceholderIcon(<pOS>)
stripZerosRemoves any superfluous zeros and decimal places.stripZeros(<pString>)
constrainPathToRectScales and translates a path to fit within a rectangleconstrainPathToRect(<pTargetRect>,<xPath>)
getNativeThemeNameGet the canonical name of the current "native" mobile themegetNativeThemeName()
paintPlaceholderImagePaint a placeholder image using an SVG icon and namepaintPlaceholderImage(<pCanvas>,<pBounds>,<pSVGIcon>,<pLabel>,<pFont>,<pColor>)